<?php
ob_start();
include('inc_config.php');
ob_clean();

$id          = getValue('new_id','int','POST',0);
$new_picture    = getValue('new_picture','str','POST','');
$msgerror = '';
$myform = new generate_form();
$myform->addTable('news');
$myform->removeHTML(0);
$myform->add('new_picture','new_picture',0,1,'',0);
$msgerror  .= $myform->checkdata();
if($msgerror == ""){
    $db_insert = new db_execute($myform->generate_update_SQL('new_id',$id));
    echo $id;
    unset($db_insert);
}else{    
    echo '0';
}
?>